﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace KwaiXiaoDian.Entity.Common
{
    public static class Enums
    {
        /// <summary>
        /// 排序类型
        /// </summary>
        [Description("排序类型")]
        public enum OrderByType : byte
        {
            [Display(Name = "升序")]
            ASC,

            [Display(Name = "降序")]
            DESC
        }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Description("是否启用")]
        public enum IsEnabledType : byte
        {
            [Display(Name = "是")]
            Y,

            [Display(Name = "否")]
            N
        }

        /// <summary>
        /// 短信发送场景类型
        /// </summary>
        [Description("短信发送场景类型")]
        public enum SmsSceneType : byte
        {
            [Display(Name = "注册")]
            Register = 1,

            [Display(Name = "重置密码")]
            ResetPasswd
        }

        /// <summary>
        /// 角色类型
        /// </summary>
        [Description("角色类型")]
        public enum RoleType : byte
        {
            [Display(Name = "超级管理员")]
            ADMIN,

            [Display(Name = "租户")]
            TENANT
        }

        /// <summary>
        /// 商品状态类型
        /// </summary>
        [Description("商品状态类型")]
        public enum ProductStatusType : byte
        {
            /// <summary>
            /// 在架
            /// </summary>
            [Display(Name = "在架")]
            OnStock = 1,

            /// <summary>
            /// 下架
            /// </summary>
            [Display(Name = "下架")]
            OffStock
        }

        /// <summary>
        /// 处理状态类型
        /// </summary>
        [Description("处理状态类型")]
        public enum HandleStatusType : byte
        {
            /// <summary>
            /// 未处理
            /// </summary>
            [Display(Name = "未处理")]
            UnHandled = 1,

            /// <summary>
            /// 已处理
            /// </summary>
            [Display(Name = "已处理")]
            Handled
        }

    }
}
